import Request from '@/axios/request'

export function getApiDocuments(params) {
  return Request.get('api-documents', { params })
}

export function getFormatApiDocument() {
  return Request.get('api-documents/format')
}

export function storeApiDocument() {
  return Request.post('api-documents')
}

export function truncateApiDocument() {
  return Request.delete(`api-documents/truncate`)
}